package com.py.protostuff.test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/** 
 * Created by zhangzh on 2017/2/20. 
 */  
public class Student {  
  
    private String name;  
    private String studentNo;  
    private int age;  
    private List<String> schoolName = new ArrayList<>();  
    private Map<String, String> map = null;//new HashMap<>();
  
   // 关于@Tag,要么所有属性都有@Tag注解,要么都没有,不能一个类中只有部分属性有@Tag注解  
  
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }  
  
    public String getStudentNo() {  
        return studentNo;  
    }  
  
    public void setStudentNo(String studentNo) {  
        this.studentNo = studentNo;  
    }  
  
    public int getAge() {  
        return age;  
    }  
  
    public void setAge(int age) {  
        this.age = age;  
    }  
  
    public List<String> getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(List<String> schoolName) {
		this.schoolName = schoolName;
	}

	public Map<String, String> getMap() {
		return map;
	}

	public void setMap(Map<String, String> map) {
		this.map = map;
	}

	@Override  
    public String toString() {  
        return "Student{" +  
                "name='" + name + '\'' +  
                ", studentNo='" + studentNo + '\'' +  
                ", age=" + age +  
                ", schoolName='" + Arrays.toString(schoolName.toArray()) + '\'' +  
                ", map='" + map + '\'' +  
                '}';  
    }  
} 